import request from '@/utils/request'
import qs from 'qs'
// 进口企业数量 AEO企业数量
export function reqFindCommodityNum (data) {
  return request({
    url:'/commodity/commodity/findCommodityNum',
    method: 'post',
    data:data
  })
}


// 进出口商品情况
export function reqFindCustomsCommodity (data) {
  return request({
    url:'/commodity/commodity/findCustomsCommodity',
    method: 'post',
    data:data
  })
}

// 上海海关进出口商品情况
export function reqFindCustomsCommoditySH(data) {
  return request({
    url: '/commodity/commodity/findCustomsCommoditySH',
    method: 'post',
    data: data
  })
}
// 关区进出口商品情况
export function reqFindCustomsCommodityGQ(data) {
  return request({
    url: '/commodity/commodity/findCustomsCommodityGQ',
    method: 'post',
    data: data
  })
}







// 总额 报关 纳税 情况
export function reqFindEntryAccessNum (data) {
  return request({
    url:'/commodity/commodity/findEntryAccessNum',
    method: 'post',
    data:data
  })
}
// 获取隶属海关坐标
export function reqFindCustoms () {
  return request({
    url:'/commodity/customs/findCustoms',
    method: 'get',
   
  })
}

// 根据海关名称查询海关代码
export function reqFindCustomsCode  (customsLs) {
  return request({
    url:'/commodity/customs/findCustomsCode/'+customsLs,
    method:'get'
  })
}

// 企业性质-行业分类
export function reqEnterprise_classification(data){
  return request({
    url:'/commodity/commodity/enterprise_classification',
    method:'post',
    data:data
  })
}

// 查验情况 查验率
export function reqFindInspectionRate(data){
  return request({
    url:'/commodity/commodity/findInspectionRate',
    method:'post',
    data:data
  })
}


// 查验情况 查获率
export function reqFindCaptureRate(data){
  return request({
    url:'/commodity/commodity/findCaptureRate',
    method:'post',
    data:data
  })
}

export function reqFindInspectionRateQY(data) {
  return request({
    url: "/commodity/commodity/findInspectionRateQY",
    method: "post",
    data: data,
  });
}

// 查验情况 查获率
export function reqFindCaptureRateQY(data) {
  return request({
    url: "/commodity/commodity/findCaptureRateQY",
    method: "post",
    data: data,
  });
}


// 付汇档案
export function reqFindEntPaymentTop(data){
  return request({
    url:'/basic/basic/findEntPaymentTop',
    method:'post',
    data:data
  })
}
// 企业风险 标签
export function reqClassificationCustomsAreas(data){
  return request({
    url:'/commodity/commodity/ClassificationCustomsAreas',
    method:'post',
    data:data
  })
}

// 企业风险 外部行政处罚
export function reqAdministrativeSanction(data){
  return request({
    url:'/commodity/commodity/AdministrativeSanction',
    method:'post',
    data:data
  })
}

// 指标展示
export function reqCommodityData (data){
  return request({
    url:'/indicatorDisplay/indicatorDisplay/commodityData',
    method:'post',
    data:data
  })
}
// 对外付汇情况
export function reqFindEntPayment(data){
  return request({
    url:'/basic/basic/findEntPayment',
    method:'post',
    data:data
  })
}

// AEO企业降级
export function reqEnterpriseDemotion(data) {
  return request({
    url: "/commodity/commodity/EnterpriseDemotion",
    method: "post",
    data: data,
  });
}


// 报关单量及贸易额情况
export function reqFindEntryAccessNumByConsign(data) {
  return request({
    url:'/commodity/commodity/findEntryAccessNumByConsign',
    method:'post',
    data:data
  })
}

// 报关单量及贸易额情况
export function reqFindEntryAccessNumByConsignQJ(data) {
  return request({
    url: '/commodity/commodity/findEntryAccessNumByConsignQJ',
    method: 'post',
    data: data
  })
}

// 执法档案
export function reqFindLawEnforcementInfo(data) {
  return request({
    url: "/basic/basic/findLawEnforcementInfo",
    method: "post",
    data: data,
  });
}

export function reqFindInterveneAll(data) {
  return request({
    url: "/basic/basic/findInterveneAll",
    method: "post",
    // headers: { "content-type": "application/x-www-form-urlencoded" },
    data:data,
  });
}
export function reqFindInterveneAudit(data) {
  return request({
    url: "/basic/basic/findInterveneAudit",
    method: "post",
    data: data,
  });
}
export function reqFindCheck(data) {
  return request({
    url: "/basic/basic/findCheck",
    method: "post",
    data: data,
  });
}
export function reqFindInterveneSuppressSmuggling(data) {
  return request({
    url: "/basic/basic/findInterveneSuppressSmuggling",
    method: "post",
    data: data,
  });
}

// AEO 二级页面
export function reqEnterpriseDemotionDetailS(data) {
  return request({
    url: "/commodity/commodity/EnterpriseDemotionDetailS",
    method: "post",
    data: data,
  });
} 



// token传给后台
export function reqTokenSave(token){
  return request({
    url: "/indicatorDisplay/indicatorDisplay/save",
    method: "post",
    data:{
     
      token:token
    }
  });
}
// aeo 标签整合接口
export function reqEnterpriseLabelConcordance(data) {
  return request({
    url: "/commodity/commodity/EnterpriseLabelConcordance",
    method: "post",
    data: data,
  });
}

// 供应链档案
export function reqFindSupplyChain(data) {
  return request({
    url: "/basic/basic/findSupplyChain",
    method: "post",
    data: data,
  });
}
// 一类爆炸品
export function reqFindIExplosives(data) {
  return request({
    url: "/commodity/commodity/findIExplosives",
    method: "post",
    data:qs.stringify(data),
    headers: { "content-type": "application/x-www-form-urlencoded" },
  });
}
// 查询行业分类
export function reqHyList(data){
    return request({
      url: "/commodity/commodity/enterprise_classification_concordance",
      method: "post",
      data: data,
     
    });
}
// 查询所有标签

export function reqBQList(){
    return request({
      url: "/commodity/commodity/findAllEnterpriseLabel",
      method: "get",
 
    });
}
// 查询应急局
export function reqYJJNumber(data){
  return request({
    url: "/commodity/commodity/findHazardousChemicals",
    method: "post",
    data: qs.stringify(data),
    headers: { "content-type": "application/x-www-form-urlencoded" },
  });
}
// 查询应急局
export function reqYJJList(data){
  return request({
    url: "/commodity/commodity/findHazardousChemicalsSelect",
    method: "post",
    data: data,
  });
}
// 查询一类爆炸品

export function reqBZPList(data){
  return request({
    url: "/commodity/commodity/findIExplosivesSelect",
    method: "post",
    data: data,
  });
}
// 体检档案
export function reqFindEnterpriseRisk(data) {
  return request({
    url: "/basic/basic/findEnterpriseRisk",
    method: "post",
    data: data,
  });
}